package com.sst.sys.controller;

import com.sst.sys.entity.SuccessDto;
import com.sst.sys.entity.User;
import com.sst.sys.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys")
public class LoginController {

    @Autowired
    private IUserService iUserService;

    @RequestMapping("/login")
    public SuccessDto UserLogin(@RequestBody User user){
        return iUserService.checkPassword(user);
    }

}
